<?php
/**
 * @author kwor
 * @url http://www.kwor.cn
 * 
 */
require_once 'glob.php';
if($_SESSION['admintype']==1){
$sql="select * from sn_adminmenu where upid = 0";
}else if($_SESSION['admintype']==2){
$sql="select * from sn_adminmenu where ower in(2,0) and upid = 0";
}elseif($_SESSION['admintype']==3){
$sql="select * from sn_adminmenu where ower in(3,0) and upid = 0";
}
$menu_c=$db->getlist($sql);

$xueniao->assign("menu",$menu_c);
$xueniao->display('left.htm');

?>